package com.sky.service.admin;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.PasswordEditDTO;
import com.sky.pojo.Employee;
import com.sky.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 新增员工
     * @param employeeDTO 新增员工数据
     */
    void insert(EmployeeDTO employeeDTO);

    PageResult query(EmployeePageQueryDTO queryDTO);

    Employee queryById(Integer id);

    void setStatus(Integer id, Integer status);

    void update(EmployeeDTO employeeDTO);
}
